﻿<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">        
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

	<link href="{$WEB_APP.css_dir}bootstrap.css" rel="stylesheet" type="text/css">
    <script src="java/main.js"></script>
	<script src="java/jquery.js" type="text/javascript" language="javascript"></script>
	<script src="java/bootstrap-dropdown.js" type="text/javascript" language="javascript"></script>

	
	{if $title neq ""}
	<title>{$title} - {$WEB_APP.user_info_title|escape}SunRav WEB Class</title>
	{else}
	<title>{$WEB_APP.user_info_title|escape}SunRav WEB Class</title>
	{/if}
    
	{if isset($WEB_APP.scripts)}
	{foreach from = $WEB_APP.scripts item = script}
		<script src="java/{$script}" type="text/javascript" language="javascript"></script>
	{/foreach}
	{/if}
	
	{if $WEB_APP.test_css neq ''}
	<style type="text/css">
	{$WEB_APP.test_css}
	</style>
	{/if}
	
	{if isset($WEB_APP.question)}
		{if $WEB_APP.question->css neq ''}
			<style type="text/css">
			{$WEB_APP.question->css}
			</style>
		{/if}
	{/if}
  </head>

<body>
<div class="container-fluid">
  	{if count($WEB_APP.categories) > 0}
		{if $main_module neq 'login.tpl'}
			{include file="modules_view.tpl"}
		{/if}
	{/if}
	{include file="$main_module"}
	
	<footer class="footer pagination-centered">
	<hr>
	{if count($WEB_APP.categories) <> 0}{$text.txt_copyright} ({$WEB_APP.timer} sec.){/if}	
	</footer>
	
	<!--
	<script src="java/main.js"></script>
	<script src="java/jquery.js"></script>    
	<script src="java/bootstrap.js"></script>
	<script src="java/bootstrap-dropdown.js"></script>
	-->
</body>
</html>